package com.woniu.zsd.order.mapper;

import com.woniu.zsd.order.entity.OrderWaste;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.zsd.order.from.WorkUpdateWasteFrom;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface OrderWasteMapper extends BaseMapper<OrderWaste> {


    void insertBatch(@Param("list") List<OrderWaste> wastes);


    void addOrderWaste(List<OrderWaste> orderWastes);

    @Select("select * from order_waste where order_num=#{orderNumber}")
    List<OrderWaste> findOrderWasteByOrderNumber(String orderNumber);
}
